package com.transport.dao;

import java.util.List;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.transport.model.Member;

public class MemberDao extends HibernateDaoSupport{


	public String memberLogin(Member member) {
		List list = getHibernateTemplate().find(
				"from Member where username='" + member.getUsername() + "' and password='"
						+ member.getPassword() + "'");
		if (list.size() == 0) {
			return "none";
		}
		else {
			return "one";
		}
	}

}
